<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="sp.faq.myquestion.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

</head>

<body><%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/serviceprovider/faq/faq_menu.jsp" />
		</td>
	</tr>
	<tr>
		<td>
		<h2><spring:message code="sp.faq.myquestion.label.myquestion" /></h2>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>

</table>

<c:if test="${not empty listQuestions.pageItems}">
	<table class="formTable" width="80%" cellspacing="0">
		<tr class="ui-state-default">
			<c:if test="${listQuestions.pageNumber>1}">
				<td align="left"><a
					href="my_question.htm?pageNo=${listQuestions.pageNumber-1}"><spring:message code="sp.faq.myquestion.button.priviouspage" />&nbsp;&nbsp;<img src="../../images/previous.jpg" border="0"
					alt="Previous page" /></a></td>
			</c:if>
			<c:if test="${listQuestions.pageNumber<listQuestions.pagesAvailable}">
				<td align="right"><a
					href="my_question.htm?pageNo=${listQuestions.pageNumber+1}"><spring:message code="sp.faq.myquestion.button.nextpage" />&nbsp;&nbsp;<img src="../../images/next.jpg" border="0"
					alt="Next page" /></a></td>
			</c:if>
		</tr>
	</table>
	<table class="formTable" width="80%" cellspacing="0">

		<tr class="formHeader">
			<td colspan="10"><spring:message code="sp.faq.myquestion.label.listofmyquestions" /></td>
		</tr>
		<tr class="formSubHeader">
			<th>#</th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=email&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.email" /></a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=question&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.question" /></a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=confidential&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.confidential" /></a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=order_number&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.order" />#</a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=category_id&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.category" /></a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=top_rank&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.rankintop10" /></a></th>
			<th><a	href="my_question.htm?pageNo=${listQuestions.pageNumber}&sortColumn=created&sortOrder=${listQuestions.sortOrder}"
				class="headerLink" style="cursor: pointer;" title="${listQuestions.sortOrder}"><spring:message code="sp.faq.myquestion.label.created" /></a></th>
		</tr>

		<c:forEach var="question" items="${listQuestions.pageItems}"
			varStatus="i">
			<tr class="tr_record">
				<td>${i.count+(listQuestions.recordSize*(listQuestions.pageNumber-1))}</td>
				<td>${question.email}</td>
				<td><a href="view_question.htm?id=${question.id}"><span title="${question.questionFull}">${question.question}</span></a></td>
				<td>${question.confidentialLabel}</td>
				<td>${question.orderNumber}</td>
				<td><span title="${question.category.nameFull}">${question.category.name}</span></td>
				<td>${question.topRank}</td>
				<td>${question.createdDatetime}</td>
			</tr>
		</c:forEach>
	</table>
	<table class="formTable" width="80%" cellspacing="0">
		<tr class="ui-state-default">
			<c:if test="${listQuestions.pageNumber>1}">
				<td align="left"><a
					href="my_question.htm?pageNo=${listQuestions.pageNumber-1}"><spring:message code="sp.faq.myquestion.button.priviouspage" />&nbsp;&nbsp;<img src="../../images/previous.jpg" border="0"
					alt="Previous page" /></a></td>
			</c:if>
			<c:if test="${listQuestions.pageNumber<listQuestions.pagesAvailable}">
				<td align="right"><a
					href="my_question.htm?pageNo=${listQuestions.pageNumber+1}"><spring:message code="sp.faq.myquestion.button.nextpage" />&nbsp;&nbsp;<img src="../../images/next.jpg" border="0"
					alt="Next page" /></a></td>
			</c:if>
		</tr>
	</table>
</c:if>

<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
<script language="javascript">
	function deleteQuestion(id) {
		if (confirm('Are you sure you want to delete this question?')) {
			var deleteUrl = "delete_question.htm?id=" + id;
			window.location = deleteUrl;
		}
	}
</script>
</body>
</html>